﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Xml;
using System.Globalization;
using System.Net;

namespace akl.web.Common
{
    public static class Util
    {

        public static string GetAppSetting(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }

        /// <summary>
        /// using the App Setting RushEmailAddress or defaulting to rush@aklalphaphi.org
        /// </summary>
        /// <returns></returns>
        public static string RushEmailAddress
        {
            get
            {
                var rushEmail = GetAppSetting("RushEmailAddress");
                return !string.IsNullOrWhiteSpace(rushEmail) ? rushEmail : "rush@aklalphaphi.org";
            }
        }

    }
}